﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Upeu.Matricula.Data.Business;
using Upeu.Matricula.Data.Entities;

namespace Upeu.Matricula.Data.Test.Business
{
    [TestClass]
    public class PeopleBusinessTest
    {
        [TestMethod]
        public void TestGetListByFilter()
        {
            var lista = StudentBusiness.GetListByFilter("");
            Assert.IsTrue(lista.Count > 0);
        }

        [TestMethod]
        public void TestCreate()
        {
            Student nuevo = new Student
            {
                CodigoM = "201322747",
                Nombre = "Yuselenin1",
                Apellidos = "Anquise Jihuaña",
                DNI = "74732460",
                Direccion = "juliaca",
                FechaNac = DateTime.Now,
                Tutor_Id = new Guid("b62731ea-ba1e-e511-8291-b803058e3496")
            };
            Student c = StudentBusiness.Create(nuevo);
            Assert.IsTrue(c.Id != Guid.Empty);
        }
        
    }
}
